﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using TankGame2013;
using GameTank;

namespace TankGame2013
{
    public class StartScene
    {
        //// Misc
        //protected TextMenuComponent menu;
        //protected readonly Texture2D elements;
        //// Audio
        //protected AudioLibrary audio;
        //// Spritebatch
        //protected SpriteBatch spriteBatch = null; 

        //public StartScene(Game game, SpriteFont smallFont, SpriteFont largeFont,
        //                    Texture2D background)
        //    : base(game)
        //{
            
        //    Components.Add(new ImageComponent(game, background, ImageComponent.DrawMode.Stretch));

        //    // Create the Menu
        //    string[] items = { "New campaign", "Continue campaign", "Help", "Quit" };
        //    menu = new TextMenuComponent(game, smallFont, largeFont);
        //    menu.SetMenuItems(items);
        //    Components.Add(menu);

        //    // Get the current spritebatch
        //    spriteBatch = (SpriteBatch)Game.Services.GetService(
        //                                    typeof(SpriteBatch));

        //    // Get the audio library
        //    audio = (AudioLibrary)
        //        Game.Services.GetService(typeof(AudioLibrary));
        //}

        ///// <summary>
        ///// Show the start scene
        ///// </summary>
        //public override void Show()
        //{
        //    //audio.NewMeteor.Play();

        //    // Put the menu centered in screen
        //    menu.Position = new Vector2((Game1.windowsBounder.Width -
        //                                  menu.Width) / 2, Game1.windowsBounder.Height -
        //                                  menu.Height - 10);

        //    // These elements will be visible when the 'Rock Rain' title
        //    // is done.
        //    menu.Visible = true;
        //    menu.Enabled = true;
        //    MediaPlayer.Play(audio.StartMusic);
        //    base.Show();
        //}

        ///// <summary>
        ///// Hide the start scene
        ///// </summary>
        //public override void Hide()
        //{
        //    MediaPlayer.Stop();
        //    menu.Visible = false;
        //    menu.Enabled = false;
        //    base.Hide();
        //}

        ///// <summary>
        ///// Gets the selected menu option
        ///// </summary>
        //public int SelectedMenuIndex
        //{
        //    get { return menu.SelectedIndex; }
        //}

        ///// <summary>
        ///// Allows the game component to update itself.
        ///// </summary>
        ///// <param name="gameTime">Provides a snapshot of timing values.</param>
        //public override void Update(GameTime gameTime)
        //{
        //    base.Update(gameTime);
        //}

        //public override void Draw(GameTime gameTime)
        //{
        //    base.Draw(gameTime);
        //}
    }
}
